import React, { Component } from 'react'
import Checkbox from './index'

export default class CheckboxDemo extends Component {
  constructor (props) {
    super(props)
    this.state = {
      checked: false
    }
  }
  onChange (val) {
    this.setState({
      checked: val
    })
  }
  render () {
    return (
      <Checkbox
      checked={this.state.checked}
      onChange={this.onChange.bind(this)}
      >a1</Checkbox>  
    )
  }
} 